<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" 
	template="layout/template.xhtml">

	<ui:define name="body">

		<rich:panel>
		<f:facet name="header">聚会一览</f:facet>
		
			<rich:dataTable value="#{nomikais}" var="p">

				<f:facet name="header">
					<rich:columnGroup>
						<h:column>
							<h:outputText styleClass="headersText" value="Id" />
						</h:column>
						<h:column>
							<h:outputText styleClass="headersText" value="活动名称" />
						</h:column>
						<h:column>
							<h:outputText styleClass="headersText" value="日期" />
						</h:column>
						<h:column rendered="#{param['update']}">
							<h:outputText styleClass="headersText" value="action" />
						</h:column>
					</rich:columnGroup>
				</f:facet>

				<h:column>
					<h:outputText value="#{p.nomikaiid}" />
				</h:column>
				<h:column>
					<!-- <s:link view="/nomikaiDetail.xhtml" value="#{p.name}"
						propagation="false"> -->
					<s:link view="/nomikaiDetail.xhtml" value="#{p.name}"
						propagation="none">
						<f:param name="nomikaiid" value="#{p.nomikaiid}" />
					</s:link>
				</h:column>
				<h:column>
					<h:outputText value="#{p.date}">
						<f:convertDateTime pattern="yyyy/MM/dd"></f:convertDateTime>
					</h:outputText>
				</h:column>
				<h:column rendered="#{param['update']}">
					<s:link view="/nomikai.xhtml" value="修正" propagation="begin">
						<f:param name="nomikaiid" value="#{p.nomikaiid}" />
					</s:link>
				</h:column>

			</rich:dataTable>
		</rich:panel>
	</ui:define>

</ui:composition>
